$content-font-color: #8C96B4;
.widget-item.default-item{
  cursor: not-allowed;
  opacity: 0.6;
}
.required{
  .widget-title::before{
    content: '*';
    color: $default-color-inverse;
    position: absolute;
    top: 2px;
    left: 6px;
  }
}
.widget-item{
  max-width: 323px;
  margin-bottom: 5px;
  padding: 0 15px;
  font-weight: 300;
  background: #FFFFFF;
  &.selected, &.select-item{
    border: 1px solid #569BE5;
  }
  .widget-title{
    position: relative;
    margin-left: -15px;
    padding-left: 15px;
    height: 38px;
    line-height: 40px;
    font-size: 14px;
    color: #505564;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .widget-content{
    height: 30px;
    line-height: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .widget-input{
    .widget-content{
      color: $content-font-color;
      font-size: 14px;
    }
  }
  .widget-text-area{
    .widget-content{
      position: relative;
      height: 70px;
      color: $content-font-color;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      .widget-text-area-count{
        position: absolute;
        right: 0;
        bottom: 14px;
        color: #8C96B4;
        line-height: 1;
        font-size: 12px;
      }
    }
    .widget-content-2{
      position: relative;
      min-height: 70px;
      color: $content-font-color;
      font-size: 14px;
      white-space: normal;
    }
  }
  .widget-select{
    .widget-content{
      color: $content-font-color;
      font-size: 14px;
      position: relative;
      i{
        position: absolute;
        right: 0;
        top: 0;
      }
    }
    .widget-switch {
      line-height: 35px;
      position: relative;
      .ant-switch{
        position: absolute;
        right: 0;
        top: 7px;
      }
      .isHidden {
        height: 35px;
      }
      .isHiddenSwitch {
        color: '#8C96B4'
      }
    }
  }
  .widget-single-select{
    height: 48px;
    .widget-title{
      display: inline-block;
      height: 48px;
      line-height: 48px;
    }
    .widget-content{
      position: absolute;
      right: 14px;
      top: 0;
      height: 48px;
      line-height: 48px;
      color: $content-font-color;
      i{
        margin-left: 4px;
      }
    }
  }
  .widget-attachment{
    .widget-attachment-count{
      position: absolute;
      right: 10px;
      top: 0;
      color: $content-font-color;
    }
    .widget-content{
      height: 106px;
      .widget-attachment-pic{
        height: 86px;
        width: 86px;
        position: relative;
        color: #DEE2E9;
        text-align: center;
        border: 1px dashed #DEE2E9;
        i{
          margin-top: 30px;
          font-size: 24px;
        }
      }
    }
  }
  .widget-switch{
    .ant-switch{
      position: absolute;
      right: 0;
      top: 7px;
    }
    .widget-content{
      .field-title{
        height: 36px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 35px;
        font-size: 12px;
        border-bottom: 1px solid #ECEEF3;
      }
      .field-input{
        height: 42px;
        line-height: 42px;
        color: $content-font-color;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .field-input.has-border{
        border-bottom: 1px solid #ECEEF3;
      }
    }
  }
  .widget-user{
    .widget-title{
      margin: 0 -15px;
      padding: 0 15px;
      border-bottom: 1px solid #D7DCE6;
      height: 44px;
      line-height: 44px;
      .widget-user-count{
        position: absolute;
        right: 14px;
        top: 0;
        height: auto;
        font-size: 12px;
        color: $content-font-color;
        b{
          color: #0A0F1E;
          font-size: 16px;
          margin-left: 10px;
        }
      }
    }
    .widget-content{
      padding: 15px 0;
      height: auto;
      .widget-user-item{
        width: 45px;
        text-align: center;
        .plus-border{
          height: 40px;
          width: 40px;
          line-height: 40px;
          text-align: center;
          border-radius: 50%;
          border: 1px dashed #D7DCE6;
          i{
            font-size: 16px;
            color: #1E78C8;
          }
        }
        .widget-user-add{
          width: 100%;
          font-size: 12px;
          color: $content-font-color;
          text-align: center;
          margin-top: 5px;
        }
      }
    }
  }
  .widget-date-range{
    background: white;
    position: relative;
    .date-line{
      position: absolute;
      top: 0;
      left: 50%;
      width: 2px;
      height: 70px;
      background: $content-font-color;
      opacity: .5;
    }
    .ant-col-12{
      height: 80px;
      line-height: 80px;
      color: $content-font-color;
      font-size: 18px;
      &:last-child{
        text-align: right;
      }
    }
    .date-icon{
      background: white;
      position: absolute;
      height: 34px;
      width: 34px;
      line-height: 32px;
      text-align: center;
      top: 22px;
      left: calc(50% - 16px);
      border-radius: 17px;
      border: 1px solid #EBEDEF;
      font-size: 16px;
      color: $content-font-color;
    }
  }
  .widget-allocate{
    .widget-title{
      border: none;
      i{
        position: absolute;
        right: 10px;
        top: 12px;
      }
    }
  }
  .widget-budget{
    .widget-title {
      height: 48px;
      line-height: 48px;
      margin: 0 -15px;
      padding: 0 15px;
      border-bottom: 1px solid #D7DCE6;
      .widget-budget-amount {
        position: absolute;
        right: 14px;
        top: 0;
        font-size: 12px;
        color: $content-font-color;
        b {
          margin-left: 10px;
          font-size: 14px;
          color: #BEC8D2;
        }
      }
    }
    .widget-content{
      height: 48px;
      color: #1E78C8;
      font-size: 16px;
      padding: 10px 0;
      .plus-icon{
        display: inline-block;
        width: 28px;
        height: 28px;
        margin-right: 10px;
        line-height: 28px;
        border-radius: 50%;
        border: 1px dashed #D7DCE6;
        text-align: center;
        i{
          font-size: 16px;
          color: #1E78C8;
        }
      }
    }
  }
  .widget-description{
    .widget-title{
      margin-left: 0;
      height: 30px;
      line-height: 30px;
      background-color: #EBEDEF;
      i{
        position: absolute;
        left: 0;
        top: 0;
        height: 30px;
        line-height: 30px;
        color: #1E78C8;
        font-size: 12px;
        font-weight: 600;
      }
      span {
        display: inline-block;
        margin-left: 6px;
        width: 200px;
        color: #1E78C8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      div{
        position: absolute;
        right: 0;
        height: 30px;
        line-height: 30px;
        top: 0;
        color: #9BA2BB;
      }
    }
  }
  .ant-switch-checked{
    background-color: #1E78C8;
  }
}
